<template>
  <div>
    <el-table
      :data="user"
      style="width: 100%">
        <el-table-column
            prop="userId"
            label="userId"
            width="180">
        </el-table-column>
        <el-table-column
            prop="userName"
            label="用户名"
            width="180">
        </el-table-column>
        <el-table-column
            prop="userKind"
            label="类型">
        </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
    name:"Check",
    data() {
        return {
          user:[],
        }
      },
      created(){
        var _this=this;
        this.$axios.get("http://localhost:9090/mynewsweb/api/allUser").then((res) => {
          _this.user=res.data;
        });
    }
}
</script>

<style>

</style>